public class TextSingleList {
    //进行测试模拟实现的单链表；
    public static void main(String[] args){
        MySingleList mySingleList=new MySingleList();
        mySingleList.createListNode();
        mySingleList.disPlay();
        mySingleList.addFirst(10);
        mySingleList.disPlay();
        mySingleList.addLast(100);
        mySingleList.disPlay();
        int ret=mySingleList.size();
        System.out.println(ret);
        boolean ret1=mySingleList.contains(100);
        System.out.println(ret1);
        MySingleList.Node ret2=mySingleList.searchIndex(1);
        System.out.println(ret2);
        mySingleList.insertNode(1,66666);
        mySingleList.disPlay();
        mySingleList.insertNode(2,66666);
        mySingleList.disPlay();
//        mySingleList.deleteFistKey(66666);
//        mySingleList.disPlay();
        mySingleList.remove(66666);
        mySingleList.disPlay();

    }
}
